package com.wanxi.education.mapper;

import com.wanxi.education.model.vo.video.*;
import io.lettuce.core.dynamic.annotation.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Author: 寇文宝
 * @Description:
 * @Date: Created in 2021/9/24
 * @Version: 1.0
 */
@Component
public interface VideoMapper {
    void add(VideoAddVo videoAddVo);

    List<VideoGoBackVo> findPage(@Param("name") String name,@Param("uri") String uri);

    VideoFindByIdBackVo findById(Long id);

    void update(VideoUpdateVo videoUpdateVo);

    int deleteById(@Param("id") Long id,@Param("adminId") Long adminId);

    List<VideoBindCourseVo> findVideoBindCourseById(Long id);
}
